<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>编辑新闻</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f4f4f4;
        }
        .container {
            width: 80%;
            margin: 20px auto;
            overflow: hidden;
            background: #fff;
            padding: 20px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
        }
        header {
            background: #333;
            color: #fff;
            padding: 20px;
            text-align: center;
        }
        nav {
            display: flex;
            justify-content: center;
            background: #555;
            padding: 10px 0;
        }
        nav a {
            color: white;
            text-decoration: none;
            padding: 0 15px;
        }
        nav a:hover {
            background: #444;
        }
        form {
            margin-top: 20px;
        }
        form label {
            display: block;
            margin-bottom: 5px;
        }
        form input[type="text"],
        form textarea,
        form select {
            width: calc(100% - 20px);
            padding: 10px;
            margin-bottom: 10px;
            border: 1px solid #ddd;
        }
        form input[type="button"] {
            padding: 10px 20px;
            background: #333;
            color: #fff;
            border: none;
            cursor: pointer;
            float: right;
        }
        form input[type="button"]:hover {
            background: #444;
        }
        footer {
            background: #333;
            color: #fff;
            text-align: center;
            padding: 10px 0;
            position: relative;
            bottom: 0;
            width: 100%;
        }
    </style>
</head>
<body>
    <header>
        <h1>编辑新闻</h1>
    </header>
    <nav>
        <a href="index.html">返回首页</a>
    </nav>
    <div class="container">
        <h2>编辑新闻内容</h2>
        <form action="#" method="post" enctype="multipart/form-data">
            <label for="title">新闻标题：</label>
            <input type="text" id="title" name="title" value="新闻标题" required>

            <label for="image">上传图片：</label>
            <input type="file" class="file" id="image" name="image">

            <label for="category">新闻分类：</label>
            <select id="category" name="category">
                <option value="gn">国内新闻</option>
                <option value="gj">国际新闻</option>
                <option value="yl">娱乐新闻</option>
                <option value="kj">科技新闻</option>
            </select>

            <label for="content">新闻内容：</label>
            <textarea id="content" name="content" rows="10" required>
这里是新闻的详细内容，通常会包含新闻的全文，包括引言、正文和结论。
新闻内容可以包含多个段落，每个段落都详细描述了新闻事件的不同方面。
</textarea>

            <label for="publishDate">发布日期：</label>
            <input type="date" id="publishDate" name="publishDate" required value="2024-09-24">

            <input type="button" class="update" value="更新新闻">
        </form>
    </div>
    <footer>
        <p>版权所有 © 2024 新闻网站</p>
    </footer>
</body>
</html>